package com.ruoyi.jxgl.service.impl;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jxgl.mapper.JxglTeachingViewMapper;
import com.ruoyi.jxgl.domain.JxglTeachingView;
import com.ruoyi.jxgl.service.IJxglTeachingViewService;

/**
 * 教学任务Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-22
 */
@Service
public class JxglTeachingViewServiceImpl implements IJxglTeachingViewService 
{

    @Autowired
    private JxglTeachingViewMapper jxglTeachingViewMapper;

    /**
     * 查询教学任务
     *
     * @param id 教学任务主键
     * @return 教学任务
     */
    @Override
    public JxglTeachingView selectJxglTeachingViewById(Long id)
    {
        return jxglTeachingViewMapper.selectJxglTeachingViewById(id);
    }

    /**
     * 查询教学任务列表
     *
     * @param jxglTeachingView 教学任务
     * @return 教学任务
     */
    @Override
    public List<JxglTeachingView> selectJxglTeachingViewList(JxglTeachingView jxglTeachingView)
    {
        return jxglTeachingViewMapper.selectJxglTeachingViewList(jxglTeachingView);
    }

    /**
     * 查询我的选课任务列表
     *
     * @param map 教学任务
     * @return 教学任务集合
     */
    @Override
    public List<JxglTeachingView> selectJxglMyScTeachingList(Map<String,String> map) {
        return jxglTeachingViewMapper.selectJxglMyScTeachingList(map);
    }

    /**
     * 选课管理
     * @param map 查询参数
     * @return
     */
    @Override
    public List<JxglTeachingView> selectJxglScTeachingList(Map<String,String> map){
        return jxglTeachingViewMapper.selectJxglScTeachingList(map);
    }

    /**
     * 根据课程号查开课学期
     *
     * @param cno 学号
     * @return
     */
    @Override
    public List<Map<String,String>> selectJxglScTermByCno(String cno) {
        return jxglTeachingViewMapper.selectJxglScTermByCno(cno);
    }
}
